package com.example.practice.web;


import com.example.practice.manager.UserManager;
import com.example.practice.pojo.req.UserReqVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @author: helong.sun
 * @date: 2020-12-23 19:25
 * @Version 1.0
 **/
@RestController
@RequestMapping("/v1/api/user")
public class UserController {

    @Autowired
    private UserManager userManager;

    @PostMapping("/getAll")
    private String selectAll(@RequestBody UserReqVO userReqVO){
        return  userManager.selectAll(userReqVO.getId());
    }
}
